//
//  ShowView.h
//  wnkdwaiter
//
//  Created by 尹桥印 on 15/3/28.
//  Copyright (c) 2015年  All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    CustomShowViewLocationBottomType,
    CustomShowViewLocationCenterType,
    CustomShowViewLocationTopType,
}CustomShowViewLocationType;

@protocol CustomShowViewDelegate <NSObject>

@optional
-(void)showWithCallBack;
-(void)hideWithCallBack;

@end


@interface CustomShowView : UIView
@property (weak, nonatomic)id<CustomShowViewDelegate> delegate;
/**
 *  弹出在指定的位置(x,y)
 *
 *  @param view  需要显示的view
 *  @param point (x,y)
 *
 *  @return
 */
-(instancetype)initWithCustomView:(UIView *)view point:(CGPoint)point;

-(instancetype)initWithCustomView:(UIView *)view location:(CustomShowViewLocationType)location;

-(void)showWithAnim:(BOOL)animated isTransparent:(BOOL)isTransparent;
-(void)showWithAnim:(BOOL)animated;
-(void)hideWithAnim:(BOOL)animated;

-(BOOL)isShowing;

@end
